<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改资产管理')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-zichan-edit" th:object="${bizZichan}">
        <input name="sn" th:field="*{sn}" type="hidden">
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">序号：</label>
                <div class="col-sm-7">
                    <input name="xuhao" th:field="*{xuhao}" class="form-control" type="text">
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">资产状态：</label>
                <div class="col-sm-7">
                    <select name="zichanzhuangtai" class="form-control" th:with="type=${@dict.getType('biz_zichanzhuangtai')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{zichanzhuangtai}"></option>
                    </select>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">验收单编号：</label>
                <div class="col-sm-7">
                    <input name="yanshoudanbianhao" th:field="*{yanshoudanbianhao}" class="form-control" type="text">
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label is-required">资产编号：</label>
                <div class="col-sm-7">
                    <input name="zichanbianhao" th:field="*{zichanbianhao}" class="form-control" type="text" required readonly="true">
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label is-required">资产名称：</label>
                <div class="col-sm-7">
                    <input name="zichanmingcheng" th:field="*{zichanmingcheng}" class="form-control" type="text" required>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">教育分类：</label>
                <div class="col-sm-7">
                    <select name="jiaoyufenlei" class="form-control" th:with="type=${@dict.getType('biz_jiaoyufenlei')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{jiaoyufenlei}"></option>
                    </select>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">财政分类：</label>
                <div class="col-sm-7">
                    <select name="caizhengfenlei" class="form-control" th:with="type=${@dict.getType('biz_caizhengfenlei')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{caizhengfenlei}"></option>
                    </select>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">价值：</label>
                <div class="col-sm-7">
                    <input name="jiazhi" th:field="*{jiazhi}" class="form-control" type="text">
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">数量：</label>
                <div class="col-sm-7">
                    <input name="shuliang" th:field="*{shuliang}" class="form-control" type="text">
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">计量单位：</label>
                <div class="col-sm-7">
                    <select name="jiliangdanwei" class="form-control" th:with="type=${@dict.getType('biz_jiliangdanwei')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{jiliangdanwei}"></option>
                    </select>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">取得方式：</label>
                <div class="col-sm-7">
                    <select name="qudefangshi" class="form-control" th:with="type=${@dict.getType('biz_qudefangshi')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{qudefangshi}"></option>
                    </select>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">配置批准单位：</label>
                <div class="col-sm-7">
                    <select name="peizhipizhundanwei" class="form-control" th:with="type=${@dict.getType('biz_peizhipizhundanwei')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{peizhipizhundanwei}"></option>
                    </select>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">单位会计科目：</label>
                <div class="col-sm-7">
                    <select name="danweikuaijikemu" class="form-control" th:with="type=${@dict.getType('biz_danweikuaijikemu')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{danweikuaijikemu}"></option>
                    </select>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">项目代码：</label>
                <div class="col-sm-7">
                    <input name="xiangmudaima" th:field="*{xiangmudaima}" class="form-control" type="text">
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">采购组织形式：</label>
                <div class="col-sm-7">
                    <select name="caigouzuzhixingshi" class="form-control" th:with="type=${@dict.getType('biz_caigouzuzhixingshi')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{caigouzuzhixingshi}"></option>
                    </select>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">取得日期：</label>
                <div class="col-sm-7">
                    <div class="input-group date">
                        <input name="quderiqi" th:value="${#dates.format(bizZichan.quderiqi, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">投入使用日期：</label>
                <div class="col-sm-7">
                    <div class="input-group date">
                        <input name="tourushiyongriqi" th:value="${#dates.format(bizZichan.tourushiyongriqi, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">价值类型：</label>
                <div class="col-sm-7">
                    <select name="jiazhileixing" class="form-control" th:with="type=${@dict.getType('biz_jiazhileixing')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{jiazhileixing}"></option>
                    </select>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">财务入账状态：</label>
                <div class="col-sm-7">
                    <select name="caiwuruzhangzhuangtai" class="form-control" th:with="type=${@dict.getType('biz_caiwuruzhangzhuangtai')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{caiwuruzhangzhuangtai}"></option>
                    </select>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">记账日期：</label>
                <div class="col-sm-7">
                    <div class="input-group date">
                        <input name="jizhangriqi" th:value="${#dates.format(bizZichan.jizhangriqi, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">记账凭证号：</label>
                <div class="col-sm-7">
                    <input name="jizhangpingzhenghao" th:field="*{jizhangpingzhenghao}" class="form-control" type="text">
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">财政拨款：</label>
                <div class="col-sm-7">
                    <input name="caizhengbokuan" th:field="*{caizhengbokuan}" class="form-control" type="text">
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">非财政拨款：</label>
                <div class="col-sm-7">
                    <input name="feicaizhengbokuan" th:field="*{feicaizhengbokuan}" class="form-control" type="text">
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">折旧/摊销方法：</label>
                <div class="col-sm-7">
                    <select name="zhejiutanxiaofangfa" class="form-control" th:with="type=${@dict.getType('biz_zhejiutanxiaofangfa')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{zhejiutanxiaofangfa}"></option>
                    </select>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">累计折旧/摊销：</label>
                <div class="col-sm-7">
                    <input name="leijizhejiu" th:field="*{leijizhejiu}" class="form-control" type="text">
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">净值：</label>
                <div class="col-sm-7">
                    <input name="jingzhi" th:field="*{jingzhi}" class="form-control" type="text">
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">财务负责人：</label>
                <div class="col-sm-7">
                    <select name="caiwufuzeren" class="form-control" th:with="type=${@dict.getType('biz_caiwufuzeren')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{caiwufuzeren}"></option>
                    </select>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">使用责任主体：</label>
                <div class="col-sm-7">
                    <select name="shiyongzerenzhuti" class="form-control" th:with="type=${@dict.getType('biz_shiyongzerenzhuti')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{shiyongzerenzhuti}"></option>
                    </select>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">使用部门：</label>
                <div class="col-sm-7">
                    <select name="shiyongbumen" class="form-control" th:with="type=${@dict.getType('biz_shiyongbumen')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{shiyongbumen}"></option>
                    </select>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">使用人：</label>
                <div class="col-sm-7">
                    <select name="shiyongren" class="form-control" th:with="type=${@dict.getType('biz_caiwufuzeren')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{shiyongren}"></option>
                    </select>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">管理部门：</label>
                <div class="col-sm-7">
                    <select name="guanlibumen" class="form-control" th:with="type=${@dict.getType('biz_shiyongbumen')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{guanlibumen}"></option>
                    </select>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">管理人：</label>
                <div class="col-sm-7">
                    <select name="guanliren" class="form-control" th:with="type=${@dict.getType('biz_caiwufuzeren')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{guanliren}"></option>
                    </select>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">经手人：</label>
                <div class="col-sm-7">
                    <select name="jingshouren" class="form-control" th:with="type=${@dict.getType('biz_caiwufuzeren')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{jingshouren}"></option>
                    </select>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">是否共享共用：</label>
                <div class="col-sm-7">
                    <div class="radio-box" th:each="dict : ${@dict.getType('sys_yes_no')}">
                        <input type="radio" th:id="${'shifougongxiangshiyong_' + dict.dictCode}" name="shifougongxiangshiyong" th:value="${dict.dictValue}" th:field="*{shifougongxiangshiyong}">
                        <label th:for="${'shifougongxiangshiyong_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">存放地点：</label>
                <div class="col-sm-7">
                    <select name="cunfangdidian" class="form-control" th:with="type=${@dict.getType('biz_cunfangdidian')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{cunfangdidian}"></option>
                    </select>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">普通打印次数：</label>
                <div class="col-sm-7">
                    <input name="putongdayincishu" th:field="*{putongdayincishu}" class="form-control" type="text">
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">RFID打印次数：</label>
                <div class="col-sm-7">
                    <input name="rfiddayincishu" th:field="*{rfiddayincishu}" class="form-control" type="text">
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">品牌：</label>
                <div class="col-sm-7">
                    <input name="pinpai" th:field="*{pinpai}" class="form-control" type="text">
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">规格型号：</label>
                <div class="col-sm-7">
                    <input name="guigexinghao" th:field="*{guigexinghao}" class="form-control" type="text">
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">备注：</label>
                <div class="col-sm-7">
                    <textarea name="beizhu" class="form-control">[[*{beizhu}]]</textarea>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">经费来源：</label>
                <div class="col-sm-7">
                    <select name="jingfeilaiyuan" class="form-control" th:with="type=${@dict.getType('biz_jingfeilaiyuan')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{jingfeilaiyuan}"></option>
                    </select>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">录入日期：</label>
                <div class="col-sm-7">
                    <div class="input-group date">
                        <input name="createDate" th:value="${#dates.format(bizZichan.createDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-xs-6">
            <div class="form-group">
                <label class="col-sm-5 control-label">RFID：</label>
                <div class="col-sm-7">
                    <input name="rfid" th:field="*{rfid}" class="form-control" type="text">
                </div>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
    var prefix = ctx + "system/zichan";
    $("#form-zichan-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-zichan-edit').serialize());
        }
    }

    $("input[name='quderiqi']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='tourushiyongriqi']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='jizhangriqi']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });

    $("input[name='createDate']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });
</script>
</body>
</html>